xen: don't include asm/hypercall.h from C sources
authorJuergen Gross <jgross@suse.com>
Tue, 29 Mar 2022 13:43:31 +0000 (15:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2022 13:43:31 +0000 (15:43 +0200)
commit8ebee382b99e451ba1aad025f77a82bd5427efdf
tree1e2769ca033fc0f0ba360e2710e9e3a3160c5daa
parentfc90d75c2b71ae15b75128e7d0d4dbe718164ecb
xen: don't include asm/hypercall.h from C sources

Instead of including asm/hypercall.h always use xen/hypercall.h.
Additionally include xen/hypercall.h from all sources containing a
hypercall handler.

This prepares for generating the handlers' prototypes at build time.

Add a guard in asm/hypercall.h to catch direct inclusion.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com> # arm
16 files changed:
xen/arch/arm/hvm.c
xen/arch/arm/include/asm/hypercall.h
xen/arch/arm/platform_hypercall.c
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/include/asm/hypercall.h
xen/arch/x86/mm.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/pv/emul-priv-op.c
xen/arch/x86/pv/iret.c
xen/arch/x86/traps.c
xen/arch/x86/x86_64/compat/mm.c
xen/arch/x86/x86_64/mm.c
xen/common/compat/grant_table.c
xen/common/event_channel.c
xen/common/grant_table.c
xen/common/multicall.c